package com.example.mallboot.controller;


import com.example.mallboot.dto.UserInfo;
import com.example.mallboot.service.UserService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

@RestController
@Api(tags = "cktest",description = "测试后台管理")
public class UserController {

    @Resource
    private UserService userService;

    @ApiOperation(value = "获取列表查看")
    @GetMapping("list")
    @ResponseBody
    public List<UserInfo> list(){
        return userService.getAll();
    }

}
